
import Request from '../util/request'

export default class Fav extends Request {

  // 判断登录
  isLogin(data) {
    return this.request({
      url: '/h5/execute/user/is-login',
      data
    })
  }

  // 检查收藏
  checkFavorite(data) {
    return this.request({
      url: '/h5/execute/fav/check',
      data
    })
  }

  // 添加收藏
  addFavorite(data) {
    return this.request({
      url: '/h5/execute/fav/create',
      data
    })
  }

  // 删除收藏
  removeFavorite(data) {
    return this.request({
      url: '/h5/execute/fav/delete',
      data
    })
  }

  // 列表
  list(data) {
    return this.request({
      url: '/h5/execute/fav/list',
      data
    })
  }


}
